home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
pcr
/
pcr4_4.lha
/
DIST
/
gc
/
GCdata_list.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-02
|
2KB
|
70 lines
/* begincopyright
Copyright (c) 1989,1990 Xerox Corporation. All rights reserved.
Use and copying of this software and preparation of derivative works based
upon this software are permitted. Any distribution of this software or
derivative works must comply with all applicable United States export
control laws. This software is made available AS IS, and Xerox Corporation
makes no warranty about the software, its performance or its conformity to
any specification. Any person obtaining a copy of this software is requested
to send their name and post office or electronic mail address to:
PCR Coordinator
Xerox PARC
3333 Coyote Hill Rd.
Palo Alto, CA 94304
endcopyright */
/*
* written by Mark Weiser
*
* $Log: data_list.c,v $
* Revision 1.4 88/09/10 21:57:31 xr
* *** empty log message ***
*
* Revision 1.3 88/09/10 21:42:57 xr
* *** empty log message ***
*
* Revision 1.2 88/09/10 21:38:30 xr
* *** empty log message ***
*
* Revision 1.1 88/09/10 21:27:29 xr
* Initial revision
*
* Revision 1.60 88/04/21 01:35:58 mark
* *** empty log message ***
*
* Revision 1.1 87/10/13 13:11:15 mark
* Initial revision
*
* Boehm, March 7, 1990 10:35:53 am PST
*
*/
#ifndef lint
static char rcsid[] = "$Header: data_list.c,v 1.4 88/09/10 21:57:31 xr Exp $";
#endif
#include <xr/GCPrivate.h>
void
XR_add_data_list(start, end)
char *start, *end;
{
if (GC_num_data > MAX_DATA_LIST) {
GC_abort("GC: overran data_list.\n");
} else {
GC_data_list[GC_num_data].start = start;
GC_data_list[GC_num_data].end = end;
GC_num_data += 1; /* Must be last, so that list is always */
/* valid. */
}
}
struct data_list *
XR_get_data_list(i)
int i;
{
if (i < 0 || i >= GC_num_data)
return 0;
return &GC_data_list[i];
}